<?php
/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-04-01 17:01:06
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-04-09 14:56:32
 * @FilePath: \jsadmin\app\api\validate\Orders.php
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
namespace app\api\validate;

use think\Validate;

class  Orders extends Validate
{
    protected $regex = [ 'lisn' => '/[\x{4e00}-\x{9fa5}]+/u'];
    
    protected $rule = [
        'type' => 'require',
        'intro' => 'require|lisn',
    ];
    
    protected $message = [
        'type.require' => '缺少类别',
        'intro.require' => '缺少需求',
        'intro.lisn' => '不能为纯数子或者字母'
    ];
}